//公有方法清单
import dvFunPrivate from './funPrivate.js'
import pfFunPrivateTool from './funPrivateTool.js'
import funPrivateInit from './funPrivateInit.js'
import dvFunPublic from './funPublic.js'

/*
* dataview 方法清单
* */
const pfFunIndex = {
  inst() {
    //绑定私有有方法
    Object.keys(dvFunPrivate).forEach(funName => {
      this[funName] = dvFunPrivate[funName]
    })

    //绑定私有有方法
    Object.keys(pfFunPrivateTool).forEach(funName => {
      this[funName] = pfFunPrivateTool[funName]
    })
    //绑定私有有方法
    Object.keys(funPrivateInit).forEach(funName => {
      this[funName] = funPrivateInit[funName]
    })

    //绑定公有方法
    Object.keys(dvFunPublic).forEach(funName => {
      this[funName] = dvFunPublic[funName]
    })

    return this
  }
}

export default pfFunIndex
